Skip to content

Goal-first work that ships as pull requests - #14

Merged
Alex793x merged 15 commits into
devfrom
feat/story-pull-requests
Nov 21, 2026
Merged

Alex793x merged 15 commits into
devfrom
feat/story-pull-requests

Conversation

@Alex793x

@Alex793x Alex793x commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Work in MemCode becomes goal-first. Every task belongs to a goal, a goal is one branch from the team's integration branch, and a goal ships as one pull request that MemCode can create and merge on an explicit click.

  • One composer for new work. "What do you want to get done?" Memtrace finds open goals already changing the code a request touches and suggests adding it there, so agents coordinate instead of conflicting. Otherwise it becomes a Quick change or a New goal, which the person's chosen harness (Claude Code, Codex, Cursor…) plans read-only into editable tasks.
  • Quick changes replace the hidden "Project work" catch-all: small tasks without a goal share one short-lived batch per project, one worktree, one PR. A batch closes when its PR merges; a batch whose base moved takes no new tasks.
  • Integration branch and naming are read from where merged PRs went (gh) or from merge commits: dev before main, feat/… / fix/… prefixes. Existing goals keep their branches.
  • Create pull request lists each step, then commits, pushes and opens the PR (gh when installed, otherwise GitHub's prefilled page). The description is written for reviewers: summary, each task in the agent's own report with local paths made repo-relative, decisions a person made, a test plan, and the fleet receipt folded at the end.
  • Merge appears when GitHub reports the PR mergeable (review, checks, merge state), using the repo's merge method. Merging closes the goal, moves reviewed tasks to Done and marks open goals that share its files Needs update.
  • Update from dev saves the goal's work as a commit, merges the newer base and refreshes the goal's graph. A conflicting update is aborted in full and names the files.

AGENTS.md now allows commit, push, PR, merge and update only from explicit actions that list each step first. Never deploy.

Commits

  1. refactor(review): extracts the review agent's read-only capsule and approved-harness lookup for reuse; behaviour unchanged.
  2. feat: the goal-first flow, PR creation and merge, Update from dev, with tests.
  3. docs: README, AGENTS.md, parallel-epics and the review guide.

Verification

  • Full suite: 1,035 tests, 1,032 passed, 0 failed. queued-followups.test.ts was excluded because it also hangs on clean dev; no test fails here that passes on dev.
  • New tests cover branch-strategy detection, Quick changes batches and goal branches (real git with a bare remote), PR planning, creation, merge and status mapping (scripted gh stand-in), after-merge flagging, Update from dev including conflicts, placement and harness planning.
  • npm run typecheck, npm run build and the native URL-check tests (cargo test claim_url_tests) pass.
  • Measured with the bundled engine on this repo (2,092 files): a new goal worktree's graph takes 62–100 s and ~1.7 GB; updating a goal from dev re-verifies in about 70 s. Switching one worktree between branches is refused by the engine, which is why small work batches into Quick changes instead.
  • The composer and goal cards were checked visually with example data.

Not verified yet

  • Not exercised in the packaged desktop app, or against real GitHub (create, status and merge ran against the scripted gh stand-in and a local bare remote).
  • Planning with a live Claude Code / Codex / Cursor session; it reuses the review lane's read-only launch path.
  • Older screens still say epic and story; the new surfaces say goal and task.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Alex793x and others added 3 commits November 20, 2026 15:54
Pull the approved-harness lookup and the private-capsule question out of
the review agent so other read-only callers can reuse them. The system
policy becomes an option and the launchers take only the hooks they use.
Review behaviour is unchanged; the review-agent tests pass as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every task now belongs to a goal. Tasks without one join a per-project
Quick changes batch, which replaces the Project work catch-all and ships
as one pull request.

- New work opens one composer. Memtrace finds the open goals already
  changing the code a request touches; otherwise it becomes a quick
  change or a new goal that the chosen harness plans read-only.
- New goals branch from the team's integration branch and follow its
  naming, read from merged pull requests or merge commits.
- Create pull request commits, pushes and opens the PR with a
  reviewer-first description; local paths in agent reports are made
  repo-relative. Merge goes through gh when GitHub would merge it.
- Merging closes the goal and marks open goals that share its files as
  needing an update. Update from dev saves the goal's work, merges the
  newer base and refreshes its graph; a conflicting update is aborted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover the one-door composer, Quick changes batches, integration-branch
detection, creating and merging a goal's pull request, and when goals
need an update. AGENTS.md now allows commit, push, PR, merge and update
only from explicit actions that list each step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@blocksorg

blocksorg Bot commented Nov 20, 2026

Copy link
Copy Markdown

Mention Blocks like a regular teammate with your question or request:

@blocks review this pull request
@blocks make the following changes ...
@blocks create an issue from what was mentioned in the following comment ...
@blocks explain the following code ...
@blocks are there any security or performance concerns?

Run @blocks /help for more information.

Workspace settings | Disable this message

Alex793x and others added 8 commits November 20, 2026 18:02
Save Review and Full access for both workers. Keep the successful CLI check when saving a connection so a second startup can't undo it. Show the setup guide when discovery fails and tell people with older DeepSeek versions to update.
…p ci]

After MemCode exits uncleanly, the engine owner it started keeps running and
the next start reuses it. If that owner later dies, its server keeps serving
until an engine started for any goal shuts the orphan down and takes its
port. From then on every request for the main project waited 120 seconds and
failed with "MCP error -32001: Request timed out".

MemCode now reads the owner's pid from the store record. It does not reuse a
store whose owner is gone, it reconnects before a request when the owner has
died since, and requests that arrive together share one reconnect.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… the open [skip ci]

Fleet coordination no longer locks or takes turns. A worker declares what it
is about to change (file::symbol, the kind of change and why), edits, and
records it. Peers on the same symbol, in the same file, or calling it hear
about the change with their next call. Overlapping edits are re-read
(class B). A breaking change that meets another edit goes to the workers
involved to judge (class C) and reaches the person only when they disagree,
one of them asks, or code is being moved or removed.

Also in this change:

- Two tasks that want different shapes for the same symbol no longer
  overwrite each other in turn. The second is stopped before it edits, and
  the person chooses, seeing what each task wants and why.
- A worker whose turn ends while a decision is open is paused rather than
  handed to review, and is brought back with the decision as its next
  instruction. A worker arguing for its own task reads as its case, not as
  a recommendation.
- The planner keeps tasks separate when they share a file and merges only
  tasks that need each other's result.
- Up to 50 workers can run at once (the limit was 8).
- Each task carries a runbook its worker ticks off, cards show what the
  worker is doing right now, and the board, roadmap and task views speak of
  goals and tasks.
- Per-task change records use one moving baseline per file, so every edit
  is credited once without a lock.

Checked with 14 real Codex workers across three goals at once (35 tests
passing, no lost edits), and with two workers given incompatible signatures
for one function: the decision reached the person, both workers paused, and
both carried on from the decision.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d [skip ci]

Replaces the parallel-epics page with goals.md: declare, edit, record; the
three classes; the one short hold; two tasks wanting two shapes; and how
workers pause for a decision and carry on from it. Brings the product,
planning, review and team pages and the agent rules in line with goals and
tasks, and with Fleet as coordination rather than locking.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sets the next candidate's version. Preparing the version does not publish
it. The Memtrace 1.2.22 engine pins from the released beta.18 are already on
this branch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… ci]

Only the version field changed in package-lock.json and Cargo.lock. The
notice inventory records both lock fingerprints, so packaging refuses to run
until they are refreshed. No dependency was added, removed or updated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…skip ci]

Mac gates, the real-worker runs, the two ad-hoc signed Mac packages with
their fingerprints, and the remaining steps: Windows verification, the
production updater signatures, integration through the approved pull
requests, and publication on the release owner's word.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Alex793x
Alex793x merged commit 2baef36 into dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant